package com.heima.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_sku")
public class Sku {
    @TableId(value = "sku_id",type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long skuId;
    private String skuName;
    private String skuImage;
    private Integer price;
    private Integer classId;
    private Integer IsDiscount;
    private String unit;
    private String brandName;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private Integer isDiscount;

}
